package com.code.day08.MethodYY;

import java.util.function.Supplier;

public class Demo3 {
    public static void main(String[] args) {
        demo3(Math::random);
    }

    public static void demo3(Supplier<Double> supplier) {
        Double d = supplier.get();
        System.out.println(d);
    }
}
